INCLUDE_FLAGS = -I.

CFLAGS = $(INCLUDE_FLAGS) -Wall

LFLAGS =

TARGET = multiir

SOUCE_FILES = \
	multiir.c \
	virtual_input.c

OBJS = $(patsubst %.c,%.o,$(SOUCE_FILES))

%.o : %.c
	$(CC) -c $(CFLAGS) $< -o $@

$(TARGET): $(OBJS)
	$(CC) $(OBJS) -o $@ $(LFLAGS) -static

all: $(TARGET)

.PHONY: clean testbin

testbin:
	gcc -o testbin testbin.c
	gcc -o timer event_forward.c -lrt

clean:
	$(RM) -rf *.o
	$(RM) -rf $(TARGET)
	$(RM) -rf testbin
